<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../static/knockout-3.3.0.js"></script>

</head>
<body>

	<div data-bind="visible:shouldShowMessage">wahhah</div>
	<button value="hideOrShow" onclick="hide()"></button>
</body>
<script type="text/javascript">
	var visibleViewModel = {
		shouldShowMessage : ko.observable(true)
	}
	function hide() {
		var trueOrFalse = visibleViewModel.shouldShowMessage();
		visibleViewModel.shouldShowMessage(!trueOrFalse);
	}
	ko.applyBindings(visibleViewModel);
</script>
</html>